class Student{
  name: string;
  age: number;
  gender: string = '大一';
  static test: string = '测试';

  constructor(name: string, age: number){
    this.name = name
    this.age = age
  }

  getInfo(){
    return `I am ${this.name}, I am ${this.age} years old.`
  }

  static getInfo02(){
    return `I am ${this.test}, I am 18 years old.`
  }
}

const s = new Student('张三', 23)
console.log(s.getInfo())
console.log(Student.getInfo02())
